package com.qf3.web;

import com.qf3.service.OrderService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class OrderServlet {
    public static void main(String[] args) {
        ApplicationContext ioc = new ClassPathXmlApplicationContext("spring-ioc.xml");

        OrderService orderService = ioc.getBean(OrderService.class);

        System.out.println(orderService);
    }
}
